package com.ytz.controller;

import com.ytz.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.annotation.RequestScope;

@RestController
@RequestMapping("payment")
public class PaymentController {

    @Autowired
    private PaymentService paymentService;

    @GetMapping("save")
    public String save() {

        return paymentService.findGoods();
    }

    @GetMapping("query")
    public String query() {
        return paymentService.findGoods();
    }

    @GetMapping("warmup")
    public String warmup() {
        return "warmup";
    }

    @GetMapping("queue")
    public String queue() {
        return "queue";
    }}